package com.qfedu.wfx1.service;

import com.qfedu.wfx1.po.WxbCustomer;
import com.qfedu.wfx1.po.WxbGood;
import com.qfedu.wfx1.po.WxbGoodType;
import org.apache.shiro.authc.AuthenticationException;

import java.util.List;

public interface IGoodsService {
    /**
     * 查询所有商品的类型
     * @return
     */
    List<WxbGoodType> queryGoodsType();

    /**
     * 保存添加的商品
     * @param wxbGood
     * @throws Exception
     */
    void save(WxbGood wxbGood) throws Exception;

    /**
     * 商户登录
     * @param username
     * @param password
     * @return
     * @throws NullPointerException
     * @throws AuthenticationException
     */
    WxbCustomer login(String username,String password) throws NullPointerException,AuthenticationException;

    List<WxbGood> queryGoods() throws Exception;
}
